﻿using System;
using System.Collections.Generic;
using System.Text;

namespace _013_014_015_016_表达式_语句详解_16_1_
{
    internal class Program
    {
        static void Main(string[] args)
        {
            int Score = 0;
            bool canContinue = true;
            while (canContinue) {

                Console.WriteLine("Please Input first number");
                string str1 =Console.ReadLine();
                int x = int.Parse(str1);

                Console.WriteLine("Please input  second number");
                string str2=Console.ReadLine();
                int y = int.Parse(str2);

                int sum = x + y;
                if (sum == 100)
                {
                    Score++;
                    Console.WriteLine("Correct!{0}+{1}={2}", x, y, sum);
                }
                else {
                    Console.WriteLine("Error!{0}+{1}={2}",x,y,sum);
                    canContinue = false;
                }


            }
            Console.WriteLine("Your Score is {0}",Score);
        }
    }
}
